STEP 3: We always want our soccer ball on the left side of the screen, but it can appear close to the ground or sky!

  • Click LOGIC, then .
  • Drag out a Random Integer tool to the bottom of your code.
  • Change the name to the left of the = sign from my_var to bally.
  • Change the numbers in parentheses from 1, 10 to -100, 100.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_axis(100) stage.create_grid_overlay(10, "grey") stage.set_background("soccerfield") ballx = -80
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)